package com.kuang.demo.service;


import com.kuang.demo.bo.zzy.LogBo.ListPageLimit2;
import com.kuang.demo.bo.zzy.Role.*;
import com.kuang.demo.bo.zzy.TotalItem;

import java.util.List;

public interface RoleService {

    List<ValueLabel> selectAllRole();

    TotalItem selectAllRoleByLimit(ListPageLimit2 listPageLimit);

    CreateRole createRole(NameDesc nameDesc);

    int selectRoleName(String name);

    void updateRole(IdNaEnaAddUpDe idNaEnaAddUpDe);

    void deleteRole(IdNaEnaAddUpDe idNaEnaAddUpDe);

    ReturnPermission selectAllPermission(int roleId);

    void updatePermission(RolePermission rolePermission);
}
